Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Prim] fix the stack op bug in the old IR #66457

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

zeroRains
Copy link
Contributor

PR Category

Others

PR Types

Bug fixes

Description

当Tensor不开启梯度计算时,在旧IR下梯度初始化似乎不是初始化为空值,而是初始化成一个维度为[]的Tensor,这旧导致了其会进入到反向计算prim拆解的流程中,而其中涉及到了一个对梯度(维度为[])reshape操作,这就导致了这个测试失败。因此需要在初始化变量时开启梯度计算

Copy link

paddle-bot bot commented Jul 24, 2024

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot paddle-bot bot added the contributor External developers label Jul 24, 2024
@cyber-pioneer cyber-pioneer merged commit 4ecee84 into PaddlePaddle:develop Jul 25, 2024
30 of 31 checks passed
@zeroRains zeroRains deleted the stack branch July 25, 2024 15:54
Dale1314 pushed a commit to Dale1314/Paddle that referenced this pull request Jul 28, 2024
inaomIIsfarell pushed a commit to inaomIIsfarell/Paddle that referenced this pull request Jul 31, 2024
lixcli pushed a commit to lixcli/Paddle that referenced this pull request Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants